<?php $_item = $self->getItem(); ?>
<li <?php if($_item['selected']) echo 'class="selected"'; ?>>
	<div class="label">
	<?php if($_item['selected'] || $_item['count']==0): ?>
		<?php echo $_item['label']; ?>
	<?php else: ?>
		<a href="<?php echo $_item['url'] ?>"><?php echo $_item['label']; ?></a>
	<?php endif ?>
		(<?php echo $_item['count'] ?>)
	</div>

	<?php if ($self->getChild()): ?>
	<ul>
		<?php $self->renderChild(); ?>
	</ul>
	<?php endif ?>
</li>
